package com.android.iceman;

import android.content.Context;
import android.graphics.Canvas;
import android.widget.ImageView;

public class ShowImage extends ImageView {
	private int mAlaph = 0;
	public ShowImage(Context context) {
		super(context);
	}
	@Override
	protected void onDraw(Canvas canvas) {
		setAlpha(mAlaph);
		super.onDraw(canvas);
	}

	public boolean changeAlpha() {
		// System.out.println("mAlaph:" + mAlaph);
		if (mAlaph < 255) {
			mAlaph += 20;
			if (mAlaph > 255) {
				mAlaph = 255;
			}
			invalidate();
			return false;
		} else {
			return true;
		}
	}

}
